﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using System.Data;
using DAL;
using SQLServerDAL;

namespace BLL
{
  public class MenbersBLL
  {
    MenbersDal menberDal = new MenbersDal();
    public int AddMenbers(Menbers user)
    {
      return menberDal.AddMenbers(user);
    }
    public int DeleteMenbersr(string menberId)
    {
      return menberDal.DeleteMenbersr(menberId);
    }
    public int UpdateMenbers(Menbers menber)
    {
      return menberDal.UpdateMenbers(menber);
    }
    public int GetMenbers(int MenberID)
    {
      throw new Exception();
    }
    public int GetMenbers(string q, string n)
    {
      return menberDal.GetMenbers(q, n);
    }
    public Menbers GetListMenbers(string id)
    {
      return menberDal.GetListMenbers(id);
    }
    public DataTable GetAllMenbers()
    {
      return menberDal.GetAllMenbers();
    }
    public DataTable GetAllMenbers(string size, string index, string name, string order)
    {
      return menberDal.GetAllMenbers(size, index, name, order);
    }
  }
}
